home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / Chess++ ƒ / CChessPane.h < prev    next >
Text File  |  1993-04-25  |  1KB  |  40 lines

  1. /****
  2.  * CChessPane.h
  3.  *
  4.  *    Class representing the Chess Board pane and its contents.
  5.  *
  6.  *    Copyright © 1993 Steven J. Bushell. All rights reserved.
  7.  *
  8.  ****/
  9.  
  10. #pragma once
  11.  
  12. #include <CPane.h>
  13. #include "CChessPiece.h"
  14.  
  15. struct CChessPane : public CPane {
  16.  
  17.     CChessBoard    *itsChessBoard;
  18.  
  19.                                     /** Contruction/Destruction **/
  20.     void        IChessPane(CView *anEnclosure, CBureaucrat *aSupervisor,
  21.                             short aWidth, short aHeight,
  22.                             short aHEncl, short aVEncl,
  23.                             SizingOption aHSizing, SizingOption aVSizing);
  24.  
  25.                                     /** Drawing **/
  26.     void        Draw(Rect *area);
  27.     void        DrawSelectedSquare(void);
  28.     void        ShowSelectedSquare(void);
  29.     void        ShowMove(short rank, short file);
  30.  
  31.                                     /** Mouse **/
  32.     void        DoClick(Point hitPt, short modifierKeys, long when);
  33.     void         RegisterMove(short rank, short file);
  34.     Boolean        HitSamePart(Point pointA, Point pointB);
  35.     
  36.                                     /** Cursor **/
  37.     void        AdjustCursor(Point where, RgnHandle mouseRgn);
  38. };
  39.  
  40. pascal    void    TrackPiece(void);    // routine to track piece while dragging